package ca.mcgill.model.implementation;

import ca.mcgill.model.functional.FiniteStateMachine;

public class Task {

	private int priority;

	/**
	 * The finite state machine implemented by this task. Here the assumption is
	 * that the task implements one FSM.
	 */
	private FiniteStateMachine fsm;
	
	private String name;

	public Task(FiniteStateMachine fsm, int priority) {

		this.fsm = fsm;
		this.priority = priority;

	}
	
	public Task(String name, FiniteStateMachine fsm, int priority) {

		this.fsm = fsm;
		this.priority = priority;
		this.name = name;

	}

	public int getPriority() {
		return priority;
	}

	public FiniteStateMachine getFsm() {
		return fsm;
	}

	public String getName(){
		return this.name;
	}
}
